// 流式布局容器
import React, { Component } from 'react'
import { View, StyleSheet } from 'react-native'

const styles = StyleSheet.create({
  wrap: {
    flexDirection: 'row',
    flexWrap: 'wrap',
    justifyContent: 'space-between',
    alignItems: 'center'
  }
})

export default class Wrap extends Component {
  render() {
    return (
      <View style={styles.wrap}>
        {this.props.children}
      </View>
    )
  }
}